package com.ourclouds.dao;

import java.util.List;
import java.util.Map;

import com.ourclouds.exception.CommonException;
import com.ourclouds.vo.BaseModel;


public interface BaseMapperDAO<T> {
	
	public void insert(T t);
	
	public void update(T t);
	
	public void delete(String uuid);
	
	public void deleteByModel(T t);

	public T selectModelById(String uuid);
	
	public Integer selectByMapCount(Map<Object, Object>  map);
	
	public Integer selectByModelCount(BaseModel map);
	
	public List<T> selectByModel(BaseModel model);
	
	public List<T> selectByMap(Map<Object, Object> map);
	
	public T selectByT(T t);
	
	public int selectCount(Map<Object, Object> Map);
	
	public List<T> selectByModels(T t);
	
	public List<Map<Object, Object>> selectByMapBackListMap(Map<Object, Object> map);
	
	public List<T> selectByUser(Map<Object, Object> map);
	
	public List<T> selectSizeByUser(Map<Object, Object> map);
}
